import request from '@/utils/request'

// 
export function allListThresholdManagement(query) {
  return request({
    url: '/system/appManagement/allList',
    method: 'get',
    params: query
  })
}

// 查询
export function listDetectionManagement(query) {
  return request({
    url: '/system/detection/list',
    method: 'get',
    params: query
  })
}

// 
export function allListDetectionManagement(query) {
  return request({
    url: '/system/detection/allList',
    method: 'get',
    params: query
  })
}

// 查询阈值管理列表
export function listThresholdManagement(query) {
  return request({
    url: '/system/thresholdManagement/list',
    method: 'get',
    params: query
  })
}

// 查询阈值管理详细
export function getThresholdManagement(id) {
  return request({
    url: '/system/thresholdManagement/' + id,
    method: 'get'
  })
}

// 新增阈值管理
export function addThresholdManagement(data) {
  return request({
    url: '/system/thresholdManagement',
    method: 'post',
    data: data
  })
}

// 修改阈值管理
export function updateThresholdManagement(data) {
  return request({
    url: '/system/thresholdManagement',
    method: 'put',
    data: data
  })
}

// 删除阈值管理
export function delThresholdManagement(id) {
  return request({
    url: '/system/thresholdManagement/' + id,
    method: 'delete'
  })
}
